<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/phd/geral/uteis/imports.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/phd/model/Avaliacao.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/phd/model/Email.php';

$email = new Email($_POST);

$avaliacao = new Avaliacao($_POST);
if($avaliacao->cadastrar()){
    echo AVALIACAO_REGISTRADA;
    $email->enviar();
}else{
    echo ERRO_AVALIACAO;
}